package lib.Base;

import java.util.ArrayList;


public class Settings {
	/**
	 * This class stores all user settings.
	 * 0 = all / 1 = friends / 2 = nobody
	 */

	//profile
	private int PVisible;
	private int PGuestbook;
	private int PFriendlist;
	private boolean PSilent;
	private boolean PSearchable;
	
	//chat
	private int CAllowed;
	
	//users
	private ArrayList<String> UBlockList;
	private boolean UAllowedFInvites;
	
	//data
	private int DPersonalData;
	private int DCareerData;
	private int DHobbys;
	
	//groups
	private boolean GAllowGInvites;
	
	//liveTicker
	private boolean LTSend;
	
	public Settings() {
		PVisible = 2;
		PGuestbook = 2;
		PFriendlist = 2;
		PSilent = true;
		PSearchable = false;
		CAllowed = 2;
		UBlockList = new ArrayList<String>();
		UAllowedFInvites = false;
		DPersonalData = 2;
		DCareerData = 2;
		DHobbys = 2;
		GAllowGInvites = false;
		LTSend = false;
	}

	public void setPVisible(int PVisible) {
		this.PVisible = PVisible;
	}
	
	public int getPVisible() {
		return PVisible;
	}
	
	public void setPGuestbook(int PGuestbook) {
		this.PGuestbook = PGuestbook;
	}
	
	public int getPGuestbook() {
		return PGuestbook;
	}
	
	public void setPFriendlist(int PFriendlist) {
		this.PFriendlist = PFriendlist;
	}
	
	public int getPFriendlist() {
		return PFriendlist;
	}
	
	public void setPSilent(boolean PSilent) {
		this.PSilent = PSilent;
	}
	
	public boolean getPSilent() {
		return PSilent;
	}
	
	public void setPSearchable(boolean PSearchable) {
		this.PSearchable = PSearchable;
	}
	
	public boolean getPSearchable() {
		return PSearchable;
	}
	
	public void setCAllowed(int CAllowed) {
		this.CAllowed = CAllowed;
	}
	
	public int getCAllowed() {
		return CAllowed;
	}
	
	public void addBlockedUser(String userId) {
		UBlockList.add(userId);
	}
	
	public ArrayList<String> getUBlockList(){
		return UBlockList;
	}
	
	public void setUAllowedFInvites(boolean UAllowedFInvites) {
		this.UAllowedFInvites = UAllowedFInvites;
	}
	
	public boolean getUAllowedFInvites() {
		return UAllowedFInvites;
	}
	
	public void setDPersonalData(int DPersonalData) {
		this.DPersonalData = DPersonalData;
	}
	
	public int getDPersonalData() {
		return DPersonalData;
	}
	
	public void setDCareerData(int DCareerData) {
		this.DCareerData = DCareerData;
	}
	
	public int getDCareerData() {
		return DCareerData;
	}
	
	public void setDHobbys(int DHobbys) {
		this.DHobbys = DHobbys;
	}
	
	public int getDHobbys() {
		return DHobbys;
	}
	
	public void setGAllowGInvites(boolean GAllowGInvites) {
		this.GAllowGInvites = GAllowGInvites;
	}
	
	public boolean getGAllowGInvites() {
		return GAllowGInvites;
	}
	
	public void setLTSend(boolean LTSend) {
		this.LTSend = LTSend;
	}
	
	public boolean getLTSend() {
		return LTSend;
	}
}